package com.domian;

import com.servlet.Mypoint;

public class Station {
    Mypoint s0;
    Mypoint s1;
    Mypoint s2;

    public Station() {
        this.s0 = new Mypoint();
        this.s1 = new Mypoint();
        this.s2 = new Mypoint();
    }

    public Mypoint getS0() {
        return s0;
    }

    public void setS0(Mypoint s0) {
        this.s0 = s0;
    }

    public Mypoint getS1() {
        return s1;
    }

    public void setS1(Mypoint s1) {
        this.s1 = s1;
    }

    public Mypoint getS2() {
        return s2;
    }

    public void setS2(Mypoint s2) {
        this.s2 = s2;
    }
    public void addstation(Station station){
        this.s0.add(station.getS0());
        this.s1.add(station.getS1());
        this.s2.add(station.getS2());
    }
    public void substation(Station station){
        this.s0.sub(station.getS0());
        this.s1.sub(station.getS1());
        this.s2.sub(station.getS2());
    }
    @Override
    public String toString() {
        return "Station{" +
                "s0=" + s0 +
                ", s1=" + s1 +
                ", s2=" + s2 +
                '}';
    }
}
